package com.battery.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.battery.common.annotation.Excel;
import com.battery.common.core.domain.BaseEntity;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 设备申领明细对象 ws_dev_apply_items
 *
 * @author battery
 * @date 2021-01-22
 */
@Table(name = "ws_dev_apply_items")
public class DevApplyItems {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    @KeySql(useGeneratedKeys = true)
    private String id;

    /**
     * 设备申领表ID
     */
    @Excel(name = "设备申领表ID")
    private String devApplyId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private String itemId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String itemName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long buyCounts;

    /**
     *
     */
    @Excel(name = "")
    private String itemImg;

    private String devType;

    public String getDevType() {
        return devType;
    }

    public void setDevType(String devType) {
        this.devType = devType;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setDevApplyId(String devApplyId) {
        this.devApplyId = devApplyId;
    }

    public String getDevApplyId() {
        return devApplyId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemName() {
        return itemName;
    }

    public void setBuyCounts(Long buyCounts) {
        this.buyCounts = buyCounts;
    }

    public Long getBuyCounts() {
        return buyCounts;
    }

    public void setItemImg(String itemImg) {
        this.itemImg = itemImg;
    }

    public String getItemImg() {
        return itemImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("devApplyId", getDevApplyId())
                .append("itemId", getItemId())
                .append("itemName", getItemName())
                .append("buyCounts", getBuyCounts())
                .append("itemImg", getItemImg())
                .toString();
    }
}
